﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityMode
{
    /// <summary>
    /// 走访记录表
    /// </summary>
    public class Interview
    {
        /// <summary>
        /// 数据唯一标识符
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Required]
        [Key]
        public Guid Id { get; set; }

        /// <summary>
        /// 姓
        /// </summary>
        [Required]
        [StringLength(20)]
        public string? FirstName { get; set; }

        /// <summary>
        /// 名
        /// </summary>
        [Required]
        [StringLength(20)]
        public string? LastName { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [Required]
        [StringLength(150)]
        public string? Address { get; set; }

        /// <summary>
        /// 年龄
        /// </summary>
        [Required]
        public int Age { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [Required]
        public bool Gender { get; set; }

        /// <summary>
        /// 目的
        /// </summary>
        [Required]
        [StringLength(50)]
        public string? Objective { get; set; }

        /// <summary>
        /// 背景
        /// </summary>
        [Required]
        [StringLength(50)]
        public string? Background { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [Required]
        [StringLength(11)]
        public string ?Phone { get; set; }

        /// <summary>
        /// 是否上门
        /// </summary>
        public bool Shangmen { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        [Required]
        public DateTime Date { get; set; }

        
    }
}
